using System;
using System.Collections.Generic;
using System.Text;
using DTO.AP;

namespace DAO.AP
{
    public class APDocDAO
    {
        // man` hinh` 3
        public void InsertAPDoc(APDoc apDoc)
        {
            DataProvider provider = new DataProvider();
            provider.Open();
            string command = "insert into AP_Doc(Type, Date, TotalMoney, Payment, VendorID, APBatchNum) values ("
                + apDoc.Type + "," + apDoc.Date + "," + apDoc.TotalMoney + "," + apDoc.Payment + "," + apDoc.VendorId +  "," + apDoc.APBatchNum + ")";

            provider.ExcuteNonQuery(command);
            provider.Close();
        }
    }
}
